{$XajaxConfig}
<script src="js/myTreeMenu.js" language="JavaScript" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" charset='UTF-8'>
var partitionMenu = null; var pageMenu = null;
var selected = null;
var currentId = -1;
{literal}
function onNodeMouseClick(obj,id,menu)
{
	if (selected!=null) selected.className="";
	selected = obj;
	obj.className="selected";
	currentId = id;
	{/literal}
	{$XajaxGetLink}
	{literal}
}
function onNodeMouseOver(obj,id){}
function onNodeMouseOut(obj,id){}
function onOK()
{
	//alert(window.field_name);
//	window.field_name
//	window.field_name = field_name;
	var obj = document.getElementById('path');	
	window.win.document.forms[0].elements[window.field_name].value = obj.value;
	window.close();
	//location.href="index.php?module=partition&action=viewlinks&fixact=1&id="+currentId;
}
{/literal}
</script>
<table border="0" width="100%" style="border-bottom: 1px solid Silver; padding: 5px; background-color: #F0F0F0;"><tr><td width="100">Путь:</td><td width="300"><input id="path" type="text" size="10" readonly="true" value="" style="width: 100%;"></td><td align="right"><button onclick="onOK();">OK</button> <button onclick="window.close();">Отмена</button></td></tr></table>
<fieldset class="groupbox">
    <legend>Структура сайта</legend>
{$menu}
</fieldset>